package com.ray.quartz.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ray.quartz.service.ScheduleJobLogService;
import com.ray.quartz.table.entity.ScheduleJobLog;
import com.ray.quartz.table.mapper.ScheduleJobLogMapper;
import com.zjhc.flyhong.common.function.operator.PageDto;

@Service
public class ScheduleJobLogServiceImpl implements ScheduleJobLogService {
	@Autowired
	private ScheduleJobLogMapper scheduleJobLogMapper;
	
	@Transactional(propagation=Propagation.NOT_SUPPORTED)
	public ScheduleJobLog queryObject(Long jobId) {
		return scheduleJobLogMapper.queryObject(jobId);
	}

	@Transactional(propagation=Propagation.NOT_SUPPORTED)
	public List<ScheduleJobLog> queryList(PageDto<ScheduleJobLog> page,ScheduleJobLog jobLog) {
		return scheduleJobLogMapper.queryPageList(page,jobLog);
	}

	@Transactional(propagation=Propagation.NOT_SUPPORTED)
	public int queryTotal(ScheduleJobLog jobLog) {
		return scheduleJobLogMapper.queryTotal(jobLog);
	}

	@Transactional
	public void save(ScheduleJobLog log) {
		scheduleJobLogMapper.save(log);
	}

}
